import {defineComponent} from 'vue';
import './index.scss';
import {useRouter} from "vue-router"; // 自动引用同名 CSS 文件

export default defineComponent({
    name:"notfound-page",
    props:{},
    setup(props,{slots}){
        const router = useRouter()
        return ()=> <>
            <div class={"notfound-container"}>
                <h1>404</h1>
                <p>页面未找到</p>
                <span>notfound</span>
                <button class={'nav-to__back'} onClick={()=> router.back()}>返回</button>
            </div>
        </>
    }
});
